package com.z.front;

import com.z.admin.entity.Tag;
import com.z.admin.service.IBlogService;
import com.z.admin.service.ITagService;
import com.z.admin.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("f/tags")
public class FTagController extends BaseController<ITagService, Tag> {
    @Autowired
    private ITagService tagService;
    @Autowired
    private ITypeService typeService;

    @Autowired
    private IBlogService blogService;

    @GetMapping("{id}")
    public String tags(Model model, @PathVariable Long id) {

        model.addAttribute("activeBtn", id);
        return "front/blog/tags";
    }





}
